package com.douqu.game.core.config.activity;

import com.douqu.game.core.config.common.GoodsData;
import com.douqu.game.core.entity.GameObject;
import com.douqu.game.core.util.LoadUtils;

/**
 * Created by dengbo on 2018/9/21 0021.
 */
public class SevenActivitiesRewardConfig extends GameObject {

    //类型
    public int type;

    //达到
    public int integral;

    //礼包
    public  GoodsData[] rewardItem;

    @Override
    public boolean check()
    {
        return true;
    }

    @Override
    public boolean setVariable(String key, String value) {
        if ("rewardItem".equals(key)){
            rewardItem = LoadUtils.loadGoodDataToArray(key, value);
            return true;
        }else{
            return super.setVariable(key, value);
        }
    }

    @Override
    public String toString() {
        return "SevenDayConfig{" +
                "} " + super.toString();
    }


}
